package com.baidu.service;

import com.baidu.pojo.Exhibition;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExhibitionService {
    public List<Exhibition> getExhibition(String name);
    //    根据id查询
    public Exhibition getExhibitionById(Integer eid);

    //添加展会信息
    public void addExhibition(Exhibition exhibition);

    //删除展会信息
    public void deleteExhibition(Integer eid);

    //修改展会信息
    public void updateExhibition(Exhibition exhibition);

    //查询所有展会信息
//分页查询总记录数
    public int count();
    public List<Exhibition> getByPage(@Param("start")Integer start, @Param("pageSize")Integer pageSize);
    public Exhibition getExhibitionByTid(Integer eid);
    public void updateExhibitionByOid(Exhibition exhibition);

    //查询所有展会
    public List<Exhibition> getAllExhibition();
}
